package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface ProductcodeService {

	public Productcode saveProductcode(Productcode productcode);

	public Set<Productcode> loadProductcodes();

	public Set<Productcode> loadReferenceProductcodes(Set<Productcode> productcodes);

	public Set<Productcode> loadProductcodesByIdSet(Set<Integer> productcodesId);

	public Map<String, ?> loadProductcodeObjectReferencedSet(Productcode productcode);

	public Map<String, ?> loadProductcodeClassReferencedSet(Productcode productcode);

	public void deleteProductcode(Productcode productcode);

	public void deleteProductcodes(Set<Integer> deleteProductcodesId);

	public List<Productcode> findAllProductcodes(Integer startResult, Integer maxRows);

	public Productcode findProductcodeByPrimaryKey(Integer id);

	public Integer countProductcodes();

	public Integer countProductcodes(CmiPagination page);

	public Integer countProductcodesByName(String queryName);

	public Integer countProductcodesByDetachedCriteria(CmiPagination page);

}
